package com.lcgroup.springdemo.demos.enumeration;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



public enum ResponseCode {

    /**
     * 成功
     */
    Fail_401(401, "除0"),

    /**
     * 失败
     */
    Fail_500(500, "失败");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
